<%@ page language="java" import="java.util.*,
entitybean.oc_voyage_ben.EnitityBeanOc_Voyage_Ben,
entitybean.oc_boat_ben.EntityBeanOc_Boat_Ben,
view.ViewOc_Voyage,tools.PageBeanPlus,form.VoyageForm" pageEncoding="utf-8"%>
<%
List<EntityBeanOc_Boat_Ben> list=(List<EntityBeanOc_Boat_Ben>)request.getAttribute("list"); 
EnitityBeanOc_Voyage_Ben e=(EnitityBeanOc_Voyage_Ben)request.getAttribute("e");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>adminindex</title>
<link href="../../css/style.css" rel="stylesheet" type="text/css" />
<style>
body{
	background-color: #EAEBE3;
}
</style>
<script language="javascript">
function  update_me()
{
	
	var obj=window.confirm("是否要提交数据");
	if(obj==true)
	{
		
		var url="<%=request.getContextPath()%>/admin_update_voyage_ben.do?method=admin_update_oc_voyage_ben&v="+Math.random();
		document.getElementById("form1").action=url;
    	document.getElementById("form1").submit();
        window.alert("提交数据!");
	}
}
</script>


</head>
<body>


<div class="admin_nei">


<div class="xge">
  <!--<div class="xgetitle"><img src="../../images/admin_38.jpg" alt="" /></div> -->
  <div class="gt">
    
    
    
    <div class="gtt">
 	<form id="form1" name="form1" action=""  method="post">
   <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a0a297">
     <tr>
       <td bgcolor="#eaebe3">航次添加</td>
       </tr>
   </table>
   <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#E6E6E6" id="admintxt">
     <tr>
       <td width="14%" align="right" bgcolor="#FFFFFF">名称：</td>
       <td width="86%" bgcolor="#FFFFFF"><input type="text" value="<%=e.getVoyage_name() %>" name="voyage_name" id="voyage_name" /></td>
       </tr>
     <tr>
       <td align="right" bgcolor="#FFFFFF">科考船：</td>
       <td bgcolor="#FFFFFF"><select name="boatid" id="boatid">
       	<%for(int i=0;i<list.size();i++)
		{%>
         <option value="<%=list.get(i).getId() %>" <%if(e.getBoatid().toString().equals(list.get(i).getId().toString()))
         {%>
          selected 
         
         <%} %>><%=list.get(i).getOc_boatname() %></option>
       	<%
		}
		%>
       </select></td>
     </tr>
     <tr>
       <td bgcolor="#FFFFFF">&nbsp;</td>
       <td bgcolor="#FFFFFF"><input type="button" name="button" id="button" value=" 提交 " onclick="update_me()" />
       <input type="hidden" name="id" id="id" value="<%=e.getId()%>"/>
       </td>
     </tr>
   </table>
   </form>
 </div>
    
    
    
    
    </div>
  
</div>
</div>







</body>
</html>
